<!DOCTYPE html>
<html>
<head>
    <title></title>
    <meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="{{ asset('/admins/css/bootstrap.min.css') }}" rel="stylesheet"> 
    <script src="{{ asset('/admins/js/jquery.min.js') }}"></script>
    <script src="{{ asset('/admins/js/bootstrap.min.js') }}"></script>
</head>
<body>
    <center>
        <div class="page-header">
           <h2>修改用户
              <!-- <small>子标题</small> -->
           </h2>         
        </div> 
          @if (count($errors) > 0)
          <div class="alert alert-danger">
              <ul>
                  @foreach ($errors->all() as $error)
                      <li>{{ $error }}</li>
                  @endforeach
            </ul>
            </div>
        @endif
    </center>
    <center>
        <div class="container-fluid">
            
            <form class="form-horizontal" role="form" action="/admin/userManager/{{ $v->userId }}" method="post">
                {{ csrf_field() }}
                {{ method_field('PUT') }}
               <div class="form-group">
                  <label for="inputName" class="col-sm-5 control-label">用户名：</label>
                  <div class="col-sm-2">
                    <input id="inputName" type="text" name="userName" value="{{ $v->userName }}" disabled="disabled" />
                  </div>
               </div>
               <div class="form-group">
                  <label for="inputPassword" class="col-sm-5 control-label">密码：</label>
                  <div class="col-sm-2">
                    <input id="inputPassword" type="password" name="userPass" value="{{ $v->userPass }}"/>
                  </div>
               </div>
               <div class="form-group">
                  <label for="inputPassword" class="col-sm-5 control-label">性别：</label>
                  <div class="col-sm-2">
                    <input id="inputSex" type='radio' name='userSex' value='1' @if($v->userSex == 1) checked @endif>男&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="inputSex" type='radio' name='userSex' value='2' {{ $v->userSex==2?"checked":'' }}>女
                  </div>
               </div>
               <div class="form-group">
                  <label for="inputEmail" class="col-sm-5 control-label">邮箱：</label>
                  <div class="col-sm-2">
                    <input id="inputEmail" type="email" name="userEmail" value="{{ $v->userEmail }}" />
                  </div>
               </div>
               <div class="form-group">
                  <label for="inputTel" class="col-sm-5 control-label">手机号：</label>
                  <div class="col-sm-2">
                    <input id="inputTel" type="text" name="userTel" value="{{ $v->userTel }}" />
                  </div>
               </div>
               <div class="form-group">
                  <label for="userState" class="col-sm-5 control-label">状态</label>
                  <div class="col-sm-2">
                    <input id="inputSex" type='radio' name='userState' value='1' @if($v->userState == 1) checked @endif>可用&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <input id="inputSex" type='radio' name='userState' value='2' {{ $v->userState == 2?"checked":'' }}>禁用
                  </div>
               </div>
               <div class="form-group">
                  <div class="col-sm-offset-5 col-sm-2">
                     <button type="submit" class="btn btn-default">确认修改</button>
                  </div>
               </div>
            </form>
        </div>
    </center>

